function validate(){

var feed=document.getElementById('txtFeed');
	
	if(notEmpty(feed, "Feedback cannot be empty")){
					loadXMLDoc()
	}
}


function loadXMLDoc()
{
	if (window.XMLHttpRequest)
  		{// code for IE7+, Firefox, Chrome, Opera, Safari
  		xmlhttp=new XMLHttpRequest();
  		}
	else
  		{// code for IE6, IE5
  		xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  		}
	xmlhttp.onreadystatechange=function()
  		{
  			if (xmlhttp.readyState==4 && xmlhttp.status==200)
    		{
	    		document.getElementById("ajaxDiv").innerHTML=xmlhttp.responseText;
				//document.getElementById("myForm").reset(); 
	    	}
  		}

                var id= document.getElementById('txtId').value;
               var subgr= document.getElementById('sltSubgr').value;
	           var rel= document.getElementById('sltRel').value;
	           var com= document.getElementById('sltComby').value;
		       //var year= document.getElementById('sltYr').value;
	           //var month= document.getElementById('sltMon').value;
	          var date= document.getElementById('txtDy').value;
		      var feed=document.getElementById('txtFeed').value;
	
		var queryString ="?subgr=" + subgr +"&rel="+rel+ "&com=" + com +"&date="+date+ "&feed=" + feed + "&id=" +id;
	
		xmlhttp.open("GET","../logic/update/feedback_update.php"+queryString ,true);
		xmlhttp.send();
	}
	



function backx()
   {
	var startrow=document.getElementById('startrow').value;
	var tag=document.getElementById('tag').value;
		if(tag==1)
		{
				document.location="../admin/admin_home.php?tab=feedback_search&page="+startrow;
		}else {
			document.location="feedback_searchx.php?page="+startrow;
		}
	}

